package cn.stard.org.service.impl;

import cn.stard.basic.util.PageList;
import cn.stard.org.domain.Employee;
import cn.stard.org.domain.SystemtType1;
import cn.stard.org.mapper.SystemtType1Mapper;
import cn.stard.org.query.SystemtType1Query;
import cn.stard.org.service.ISystemtType1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SystemtType1ServiceImpl implements ISystemtType1Service {
    @Autowired
    private SystemtType1Mapper systemtType1Mapper;
    @Override
    public List<SystemtType1> loadAll() {
        return systemtType1Mapper.loadAll();
    }

    @Override
    public SystemtType1 loadById(Long id) {
        return null;
    }

    @Override
    public void remove(Long id) {
        systemtType1Mapper.remove(id);
    }

    @Override
    public void save(SystemtType1 systemType1) {
        systemtType1Mapper.save(systemType1);

    }

    @Override
    public void update(SystemtType1 systemType1) {
        systemtType1Mapper.update(systemType1);

    }

    @Override
    public PageList queryData(SystemtType1Query systemType1Query) {
        /*高级查询数据*/
        List<SystemtType1> rows = systemtType1Mapper.queryData(systemType1Query);
        /*查询分页总数*/
        Integer total = systemtType1Mapper.queryCount(systemType1Query);

        return  new PageList<SystemtType1>(total,rows);


    }

    @Override
    public Integer queryCount(SystemtType1 SystemType1Query) {
        return null;
    }

    @Override
    public void deles(List<Long> ids) {
        systemtType1Mapper.deles(ids);

    }
}